package huoye.shops.base;

import android.util.Log;

/**
 * Created by user on 2017/11/19.
 */

public class APIUrls {

    /**
     * 外网测试地址
     */
  //   public static final String API_HOST = "apidaili1.bangboquan.com";

    /**
     * 内网测试地址
     */
   // public static final String API_HOST = "apidaili1.bangboquan.com";

    /**
     * 林翔测试地址
     */
     public static final String API_HOST = "192.168.1.79:8001";

    /**
     * 韦鹏测试地址
     */
   // public static final String API_HOST = "192.168.1.178:8001";

    /**
     * 彦兴测试地址
     */
    //  public static final String API_HOST = "192.168.1.167";

    /**
     * 正式地址
     */
    // public static final String API_HOST = "https://pre.roboofit.com";


    /**
     *
     */
    public static final String HTTP= "http://";








    public static final String CONFIG = "config";//存放用户信息
    public static final String IS_FIRST_START = "is_first_start";//app是否首次安装





    public class HOME {
        public static final String TYPE_HOME_MERCHANT_CENTER = "/api/Merchant/PostMerchantCenter"; //商家管理后台主页
        public static final String TYPE_HOME_MERCHANT_VALIDATE_ALL = "/api/Merchant/PostValidateAll"; //核销接口

    }

    protected static final String getImageUrl() {
        return UserManager.getInstance().getImageUrl();
    }

    public static class COMMON_CONFIG {
       //选择城市
       public static final String TYPE_COMMON_AGENT_INFO = "http://api.bangboxia.com/api/Agent/PostAgentInfo";
       public static final String TYPE_COMMON_GET_AREA_INFO = "http://api.bangboxia.com/api/Agent/GetAreaInfo";//获取省市区3级联动


        public static final String TYPE_COMMON_UPLOAD_IMG= "/api/Tools/PostUploadImg/"; //上传OSS图片
        public static final String TYPE_COMMON_DELETE_IMG= "/api/Tools/GetDeleteOssImg/"; //删除OSS图片

        public static final String TYPE_COMMON_FIND_EVENTS_TO_URL= "/api/UserCenter/FindEventsToURL/"; //生成活动扫描二维码URL

        public static final String TYPE_COMMON_SMS_CODE_URL= "/api/Tools/PostSMSCode";//获取短信验证码
        public static final String TYPE_COMMON_APP_VERSION= "http://api.bangboxia.com/api/Suggestion/GetAppVersion";//APP版本更新

        /**
         *  阿里云 改成动态图片域名
         */
       public static final String TYPE_COMMON_ALIYUN = getImageUrl();
     //   public static final String TYPE_COMMON_ALIYUN = "https://tcsite.oss-cn-shenzhen.aliyuncs.com/";


        public final static  int FORCIBLEY=0;//强制更新
        public final static  int OPTIONAL=1;//自愿更新
        public static final String APPNAME = "bangboxia.apk";//名字



        public static final int PERMISSIONS_CODE = 1311;//权限返回码


    }



    public class USER {
        public static final String TYPE_USER_SHOP_LOGIN = "/api/Merchant/PostShopLogin"; //App商家登录

    }

    public class MESSAGE {
        public static final String TYPE_MESSAGE_POSH_SHOP_MESSAGE = "/api/Merchant/PostShopMessage/"; //获取商家消息中心
        public static final String TYPE_MESSAGE_POSH_SET_SHOP_MSG = "/api/Merchant/PostSetShopMsg"; //设置商家消息已读

    }


    public class MINE {
        public static final String TYPE_MINE_POST_DEPOSIT= "/api/Merchant/PostDeposit"; //商户提现申请
        public static final String TYPE_MINE_POST_DEPOSIT_INDEX= "/api/Merchant/PostDepositIndex/"; //获取商家提现页面数据
        public static final String TYPE_MINE_POST_DEPOSIT_REC= "/api/Merchant/PostDepositRec";//收支记录

        public static final String TEST_MINE_POST_SHOP_DETIALS= "/api/Merchant/PostShopDetials";//管理后台店铺详情
        public static final String TEST_MINE_POST_ACCOUNT_LIST= "/api/Merchant/PostAccountList";//获取商家管理账户列表
        public static final String TEST_MINE_POST_DELETE_ACCOUNT = "/api/Merchant/PostDeleteAccount";//删除账户
        public static final String TEST_MINE_POST_ADD_ACCOUNT_INFO = "/api/Merchant/PostAddAccountInfo";//新增时获取账户权限列表
        public static final String TEST_MINE_POST_EDID_ACCOUNT_INFO = "/api/Merchant/PostEditAccountInfo";//编辑时获取账户信息
        public static final String TEST_MINE_POST_SAVE_ACCOUNT = "/api/Merchant/PostSaveAccount";//保存账户（新增或编辑）
        public static final String TEST_MINE_POST_AUTH_STATE = "/api/Merchant/PostAuthState";//获取授权状态


        public static final String TEST_MINE_POST_PAGE_ALLOTDETAIL_LIST = "/api//Stockholder/PostPageAllotList";//商家获取股东分红列表

        public static final String TEST_MINE_POST_SET_CONTRACT= "/api/Merchant/PostSetContract/";//商家补全合同信息
        public static final String TEST_MINE_POST_CONTRACT_INFO= "/api/Merchant/PostContractInfo";//获取商家合同信息

        public static final String TEST_MINE_POST_SHOP_CENTER_INFO = "/api/Merchant/GetShopCenterInfo";//获取商家个人中心
        public static final String TEST_MINE_POST_EDIT_SHOP_INFO = "/api/Merchant/PostEditShopInfo";//商家信息编辑


        public static final String TEST_MINE_POST_UPLOAD_SHOP_QR_CODE = "/api/Merchant/PostUploadShopQrCode";//上传商家客服二维码
        public static final String TEST_MINE_POST_SHOP_QR_CODE_INFO = "/api/Merchant/PostShopQrCodeInfo";//获取商家客服二维码信息

    }


    public class OPERATION {

        public static final String TYPE_OPERATION_GET_ORDER_INFO ="/api/Merchant/GetOrderInfo"; //获取订单详情
        public static final String TYPE_OPERATION_SET_ORDER_STATE ="/api/Merchant/PostSetOrderState"; //商家修改订单状态
        public static final String TYPE_OPERATION_GET_PLATFORM_INFO ="/api/Merchant/GetPlatformInfo"; //获取平台配送信息
        public static final String TYPE_OPERATION_POST_ORDER_LIST ="/api/Merchant/PostOrderList"; //获取订单列表
        public static final String TYPE_OPERATION_POST_PRIZE_LIST ="/api/Merchant/PostPrizeList"; //获取商家奖品列表
        public static final String TYPE_OPERATION_POST_SAVE_PRIZE ="/api/Merchant/PostSavePrize"; //奖品上传
        public static final String TYPE_OPERATION_GET_SHOP_GOUPONS ="/api/Merchant/GetShopCoupons"; //获取优惠券列表
        public static final String TYPE_OPERATION_POST_PRODUCT_LIST ="/api/Merchant/PostProductList"; //商家获取商品列表
        public static final String TYPE_OPERATION_GET_PRODUCT_INFO ="/api/Merchant/GetProductInfo"; //商家获取商品信息
        public static final String TYPE_OPERATION_POST_PRODUCT_DEL ="/api/Merchant/PostDelProduct"; //商家商品删除
        public static final String TYPE_OPERATION_POST_PRODUCT_INFO ="/api/Merchant/PostProductInfo"; //商家商品上传/编辑
        public static final String TYPE_OPERATION_POST_EVENT_LIST ="/api/Merchant/PostEventList"; //获取活动列表
        public static final String TYPE_OPERATION_POST_EVENT_CREATE ="/api/Merchant/PostCreateEvent"; //商家创建活动（目前只创建共享奖池）
        public static final String TYPE_OPERATION_POST_EVENT_DETAIL ="/api/Merchant/PostEventDetail"; //获取活动详情
        public static final String TYPE_OPERATION_POST_NEW_EVENT_DETAIL ="/api/Merchant/PostNewEventDetail"; //获取活动详情（新）
        public static final String TYPE_OPERATION_POST_EVENT_JOIN ="/api/Merchant/PostJoinEvent"; //商家参加活动
        public static final String TYPE_OPERATION_POST_EVENT_CANCEL ="/api/Merchant/PostCancelEvent"; //商家参加活动
        public static final String TYPE_OPERATION_POST_EVENT_TO_URL ="/api/UserCenter/FindEventsToURL"; //生成活动扫描二维码URL

        public static final String TYPE_OPERATION_POST_SHOP_DISCOUNT_LIST ="/api/Merchant/PostShopDiscountList"; //核销折扣列表

        public static final String TYPE_OPERATION_POST_USER_STATISTICS ="/api/Merchant/PostUserStatistics/"; //获取用户统计信息


        public static final String TYPE_OPERATION_POST_PRIVILEGED_GUEST_LIST ="/api/Merchant/PostPrivilegedGuestList"; //获取特权用户列表
        public static final String TYPE_OPERATION_POST_DEL_PRIVILEGED_GUEST ="/api/Merchant/PostDelPrivilegedGuest"; //删除用户特权
        public static final String TYPE_OPERATION_POST_PRIVILEGED_GUEST_DETAIL ="/api/Merchant/PostPrivilegedGuestDetail"; //获取特权用户详情
        public static final String TYPE_OPERATION_POST_MODIFY_PRIVILEGED_GUEST ="/api/Merchant/PostModifyPrivilegedGuest"; //修改用户特权次数
        public static final String TYPE_OPERATION_POST_ADD_PRIVILEGED_GUEST ="/api/Merchant/PostAddPrivilegedGuest"; //添加特权用户
        public static final String TYPE_OPERATION_OBTAIN_SHOP_TYPE ="/api/Merchant/PostObtainShopType"; //获取商家当前类型等信息
        public static final String TYPE_OPERATION_JOIN_SHOP_CARD_TYPE ="/api/Merchant/PostJoinShopCardType"; //加入商家联盟/一卡通
        public static final String TYPE_OPERATION_SEARCH_USER_LIST ="/api/Merchant/PostSearchUserList"; //通过手机号查找单个用户
        public static final String TYPE_OPERATION_POST_USER_POWERS ="/api/Merchant/PostUserPowers"; //获取当前用户的权限列表


    }


}

